package com.xuchaotong.utils;

import java.util.ArrayList;
import java.util.List;

public class ListDemo {


    public static void main(String[] args) {
//        Object[] objs = {};
//        System.out.println(objs.length);
//        objs[0] = "Hello";
//        System.out.println(objs.length);

        List<String> lst = new ArrayList<String>();
        lst.add("Hello");

        System.out.println(lst.size());

        ListDemo demo = new ListDemo();
        demo.test();



    }

    public void test(){
        ListDemo.InnerStaicClass inner = new InnerStaicClass();
        inner.view();
    }

    static class InnerStaicClass {

        private Object obj;
        public InnerStaicClass() {
            obj = this;
        }

        public void view(){
            System.out.println(obj);
        }
    }
}
